<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        const 人物原型 = {
            招呼() {
                console.log('你好!');
            },
        };

        const 卡尔 = Object.create(人物原型);
        卡尔.招呼();
    </script>
</head>
<body>
    
</body>
</html>